package com.etc.domain;

/**
 * 前端zTree返回值
 * @author cyd
 *
 */
public class ZtreeResult {
    //分类id
    private Long id;
    //分类父id
    private Long pId;
    //分类名称
    private String name;
    //是否为父分类
    private boolean open;

    public ZtreeResult(Long id, Long pId, String name, boolean open) {
        this.id = id;
        this.pId = pId;
        this.name = name;
        this.open = open;
    }

    public ZtreeResult() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }
}
